package com.goodmr.passport.account;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * 社交平台数据行为
 *
 * @author <a href="mailto:bingdong13@msn.com">bigo</a>
 */
interface PlatformRepository extends JpaRepository<PlatformEntity, Long> {

    Optional<PlatformEntity> findByOpenId(String openId);

    boolean existsByOpenId(String openId);
}
